package com.kolaxy.helloserviceapi;

import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <一句话功能描述><功能详细描述>
 *
 * @author zhourunjin
 * @version: [版本号，2018-09-06]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@RequestMapping("/refactor")
public interface HelloService {

    @RequestMapping(value = "hello4",method = RequestMethod.GET)
    String hello(@RequestParam("name")String name);

    @RequestMapping(value = "hello5",method = RequestMethod.GET)
    User hello(@RequestHeader("name")String name,@RequestHeader("age") Integer age);
}
